<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <table>
            <tr>
                <td>序号</td>
                <td>姓名</td>
            </tr>
            <tr v-for="(item,index) in students">
                <td>{{index}}</td>
                <td>{{item}}</td>
            </tr>
        </table>
    </div>
    <script>
        const app = new Vue({
            el: "#app",
            data: {
                students: ["刘备", "关羽", "张飞", "马超", "黄忠"],
                obj: {}
            }
        })
    </script>
</body>

</html>